﻿using System.Globalization;

namespace Practical.SharePoint.Base
{
    public static class PrefixTrace
    {
        internal static void WriteLine(string messageText)
        {
            System.Diagnostics.Trace.WriteLine(string.Format(CultureInfo.CurrentUICulture, "{0}{1}", Constants.PROJECTNAMEFORPREFIXTRACE, messageText));
        }

        public static void WriteLine(string prefix, string messageText)
        {
            WriteLine(string.Format(CultureInfo.CurrentUICulture,
                "{0} {1} {2}",
                prefix,
                Constants.PREFIXTRACESEPERATOR,
                messageText));
        }
    }
}
